package com.yilijk.base.base;

import android.text.TextUtils;

public class BaseBean {

    private String status;
    private boolean result;
    private String msg;
    private Object data;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isSuccess(){
        if (result || TextUtils.equals(status,"200")){
            return true;
        }
        return  false;
    }

    public boolean isOtherLogin(){
        if (TextUtils.equals(status,"401")){
            return true;
        }else{
            return false;
        }
    }

}
